package org.smr.ministore.controller;


import org.blade.msg.ErrorCode;
import org.blade.msg.Message;
import org.springframework.security.web.session.SessionInformationExpiredStrategy;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

@Controller
@RequestMapping(value="login")
public class LoginController {


    @RequestMapping(value="login", method = RequestMethod.GET)
    private Message login(HttpServletRequest request,
                          HttpServletResponse response ,
                          String username,
                          String password ){

       return new Message(ErrorCode.Success.SUCCESS,"login success!");


    }

    @RequestMapping(value="loginOut", method = RequestMethod.GET)
    private Message loginOut(HttpServletRequest request,
                          HttpServletResponse response ,
                          String username,
                          String password ){

        return new Message(ErrorCode.Success.SUCCESS,"login success!");


    }

}
